package com.lovo.web.controller;

import com.lovo.web.bean.UserInfoBean;
import com.lovo.web.service.IUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("userInfo")
public class UserInfoController {
    @Autowired
    private IUserInfoService infoService;
    @RequestMapping("findUserInfo/{userId}")
    public UserInfoBean findUserInfo(@PathVariable("userId") Long userId) {
        return infoService.findUserInfo(userId);
    }
}
